package com.etc.dao;

import com.etc.entity.AdContent;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface AdContentMapper {
    List<AdContent> selectAllAd();

    int deleteByPrimaryKey(Long id);

    int insert(AdContent record);

    int insertSelective(AdContent record);

    AdContent selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(AdContent record);

    int updateByPrimaryKey(AdContent record);


    List<AdContent> findAllByCategoryid(@Param("categoryid3") Long categoryid3);
}